package com.wis.controller;

import com.wis.service.BannerService;
import com.wis.util.CommonResult;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user/banner")
public class BannerController {
    @Resource
    private BannerService  bannerServiceImpl;

    @GetMapping(value = "/showImg", produces = MediaType.APPLICATION_JSON_VALUE)
    public CommonResult showImg() {
        return bannerServiceImpl.showImg();
    }
}

